<?php
include REPOMATH_ROOT . '/util/MySQL.class.php';

class SQL {
	var $Driver;
	var $connection;
	function SQL() {
		$this->Driver = new MySQL();
	}

	function Connect($host, $user, $passwd, $database) {
		$this->Driver->host = $host;
		$this->Driver->user = $user;
		$this->Driver->passwd = $passwd;
		$this->Driver->database = $database;
		$this->connection = $this->Driver->Connect();
	}
	function Close() {
		$this->Driver->close($this->connection);
	}
	function Query($queryStr) {
		return $this->Driver->Query($queryStr, $this->connection);
	}
	function getRows($res) {
		return $this->Driver->GetRows($res);
	}
	function getArray($res){
		return $this->Driver->GetArray($res);
	}
	function getRowsNum($res) {
		return $this->Driver->GetRowsNum($res);
	}

}
?>